import request from '@/utils/request'

// 获取结算收费列表
export function getConsumeList(data) {
  return request({
    url: '/api/consume_list',
    method: 'POST',
    data,
  })
}

// 取消结算收费
export function delConsume(data) {
  return request({
    url: '/api/consume_del',
    method: 'POST',
    data,
  })
}

// 添加客户
export function addComsume(data) {
  return request({
    url: '/api/consume_add',
    method: 'POST',
    data,
  })
}

// 添加结算商品
export function insertConsume(data) {
  return request({
    url: '/api/consume_insert',
    method: 'POST',
    data,
  })
}

// 修改结算商品数量
export function changeComsume(data) {
  return request({
    url: '/api/consume_change_num',
    method: 'POST',
    data,
  })
}

// 移除结算商品
export function moveComsume(data) {
  return request({
    url: '/api/consume_move',
    method: 'POST',
    data,
  })
}

// 查看结算收费详情
export function getConsumeDetail(data) {
  return request({
    url: '/api/consume_detail',
    method: 'POST',
    data,
  })
}

// 选择物流方式
export function setDeliveryMethod(data) {
  return request({
    url: '/api/set_delivery_method',
    method: 'POST',
    data,
  })
}

// 修改运费
export function editExpressFee(data) {
  return request({
    url: '/api/edit_express_fee',
    method: 'POST',
    data,
  })
}
